home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-09 | 3.7 KB | 102 lines | [TEXT/PICN] |
- User Guide for Version 8.0 of Icon for the Macintosh
-
- Introduction
-
- The translator (Icont) and interpreter (Iconx) for Version 8.0 of the Icon
- programming language have been ported to the Macintosh using THINK C 5.0.1.
- The ported applications do NOT support:
-
- external C functions
- UNIX-like system() call
- UNIX-like pipes
- launching Iconx from Icont.
-
- The ported software has been tested on the Macintosh SE (System 7),
- Macintosh IIci (System 6), and the Macintosh IIfx (System 6).
-
- Source Files
-
- A text editor is not included with this release. If the editor of
- choice used to create Icon source files can be configured, the file type
- should be set to 'TEXT', and the creator to 'I8TR'. Setting creator is
- not required for successful operation of the translator, but does permit
- the Finder to correctly identify the files in either the icon or name
- view. In addition, double-clicking on the source file icon will cause
- the Finder to launch Icont.
-
- Binary Files
-
- The icode binary files produced as output from the translator (icont)
- have a file type of 'ICOD' and a creator of 'I8IN'. Double-clicking on
- the binary document icon will cause the Finder to launch Iconx.
-
- User Interface
-
- The THINK C console feature is used for both icont and iconx, providing
- a UNIX-like user interface. There are three components to the
- interface: the command line; a radio button area for an alternate
- standard input source; a radio button area for an alternate standard
- output target. The console interface will copy the application name
- (icont or iconx) into the command line and the user has only to enter
- either the Icon source file name, or the binary (icode) file name. The
- normal source for standard input is the Macintosh keyboard, and standard
- output will appear in the window provided by the console interface.
- Standard error output cannot be redirected, and will also appear in the
- console output window. Keyboard input end-of-file indication is a
- Control-D key combination.
-
- When either icont or iconx have terminated execution, the console window
- title bar will display the message "press <<return>> to exit" and then
- pause. After pressing the Return key, the application will complete the
- termination process and exit to the Finder.
-
- There is an escape hatch available for programs that misbehave. It is
- possible to abort a program by pressing the Command-. key combination.
- Note that this action is only effective if the program is performing an
- I/O operation. A message is printed on standard output indicating the
- program was terminated by the user.
-
- Below are shown several user interface examples:
-
- Compile an Icon program and allow any diagnostics to appear on the
- screen:
-
- Command line: icont program.icn
- Standard input buttons: console selected
- Standard output buttons: console selected
-
- Compile an Icon program and do not perform the link step:
-
- Command line: icont -c program.icn
- Standard input buttons: console selected
- Standard output buttons: console selected
-
- Execute Icon program, with standard input from keyboard and output to
- the screen:
-
- Command line: iconx program
- Standard input buttons: console selected
- Standard output buttons: console selected
-
- Execute Icon program, with standard input from a disk file, and the
- standard output to a disk file:
-
- Command line: iconx program
- Standard input buttons: file selected
- Standard output buttons: file selected
-
- The following Icon translator (icont) options are supported on the
- command line:
-
- -c compile only, no link step
- -e file select an alternate stderr file
- -o file select output file name
- -s suppress informative messages
- -u warn about undeclared ids
- -t turn on procedure tracing
-
- Enjoy!
-
- Don Klett
-
- February 9, 1992